import request from '@/plugin/axios'

export function getLeaveList (data) {
  return request({
    url: '/leave/selectListByEnterpriseId?enterpriseId=' + 1,
    method: 'get',
    data
  })
}

export function deleteById (id) {
  return request({
    url: '/leave/deleteById?id=' + id,
    method: 'get'
  })
}

export function queryDetailByContentId (id) {
  return request({
    url: '/leave/selectDetailByContentId?id=' + id,
    method: 'get'
  })
}